<template>
  <div class="container">
     <div class="box">
        <header class="header">头部</header>
        <div class="content">中间</div>
     </div>
     <div class="footer">
         <van-tabbar v-model="active">
  <van-tabbar-item icon="wap-home-o">主页</van-tabbar-item>
  <van-tabbar-item icon="search">标签</van-tabbar-item>
  <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
  <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
     </div>
  </div>
</template>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
  list-style: none;
}
html,body,#app,.container{
  width: 100%;
  height: 100%;
}
.container{
  display: flex;
  flex-direction: column;
  background: #efefef;
  .box{ 
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;

     .header{
      height: 50px;
      
     }
     .content{
      flex: 1;
      overflow: auto;
     }
  }
   .footer{
      height: 50px;
      background: #0005;
    }
}
</style>
